//
//  BaseViewController.h
//  安好
//
//  Created by 冯凯 on 14-10-27.
//  Copyright (c) 2014年 lianchuangbrother. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseDelegate.h"
#import "MBProgressHUD.h"
#import "ShareView.h"

@interface BaseViewController : UIViewController<BaseRequestDelegate,UIGestureRecognizerDelegate>
{
    __weak id<BaseRequestDelegate>_baseRequestDelegate;

}
/**
 *  公用的delegate
 */
@property (weak, nonatomic) id <BaseRequestDelegate>baseRequestDelegate;
/**
 *  加载中
 */
@property (strong, nonatomic) MBProgressHUD * mbPro;
@property (strong, nonatomic) ShareView * shareView;
@property (strong, nonatomic) NSString * voiceString;
@property (strong, nonatomic) NSString * qqShareString;
@property (strong, nonatomic) UILabel * baseLabel;
@property (strong, nonatomic) UIView * wifiView ;

/**
 *   新的加载中
 */
@property (nonatomic, strong) UIView *LoadingView;
@property (nonatomic, strong) NSTimer *timer;
@property (nonatomic, strong) UIImageView *roundImageView;

/**
 *  跳转登录
 */
- (void)isLogin;
/**
 *  显示加载中
 */
- (void)showActionView;
/**
 *  隐藏加载中
 */
- (void)hiddenActionView;
/**
 *  开启科大讯飞
 */
- (void)starVoice;
/**
 *  关闭科大讯飞
 */
- (void)cancelVoice;
/**
 *  共用的分享视图
 */
- (void)showShareView;
/**
 *  QQ分享
 *
 *  @param shareUrl        qq分享链接
 *  @param shareTitle      qq分享标题
 *  @param shreDescription qq分享类型
 *  @param shareImageUrl   qq分享图片的链接
 */
- (void)qqShare:(NSString *)qqShareUrl :(NSString *)qqShareTitle :(NSString *)qqShareDescription :(UIImage *)qqShareImage;
/**
 *  QQ空间分享
 *
 *  @param qqZoneShareUrl         qq空间分享的链接
 *  @param qqZoneShareTitle       qq空间分享的标题
 *  @param qqZoneShareDescription qq空间分享的类型
 *  @param qqZoneShareImageUrl    qq空间分享图片的链接
 */
- (void)qqZoneShare:(NSString *)qqZoneShareUrl :(NSString *)qqZoneShareTitle :(NSString *)qqZoneShareDescription :(UIImage *)qqZoneShareImage;
/**
 *  微信分享
 *
 *  @param weixinShareUrl      微信分享的链接
 *  @param weixinShareTitle    微信分享的标题
 *  @param weixinShareText     微信分享的内容
 *  @param weixinShareImageUrl 微信分享的图片
 */
-(void)weixinShare:(NSString *)weixinShareUrl :(NSString *)weixinShareTitle :(NSString *)weixinShareText :(UIImage *)weixinShareImage;
/**
 *  微信朋友圈的分享
 *
 *  @param weixinShareUrl      微信朋友圈分享的链接
 *  @param weixinShareTitle    微信朋友圈分享的标题
 *  @param weixinShareText     微信朋友圈分享的内容
 *  @param weixinShareImageUrl 微信朋友圈分享的图片
 */
-(void)weixinFriendShare:(NSString *)weixinShareUrl :(NSString *)weixinShareTitle :(NSString *)weixinShareText :(UIImage *)weixinShareImage;
/**
 *  新浪微博的分享
 *
 *  @param sinaWeiboShareUrl     新浪微博的分享的链接
 *  @param sinaWeiboShareTitle   新浪微博的分享的标题
 *  @param sinaWeiboShareText    新浪微博的分享的内容
 *  @param sinaWeiboShareImageUr 新浪微博的分享的图片
 */
-(void)sinaWeiboShare:(NSString *)sinaWeiboShareUrl :(NSString *)sinaWeiboShareTitle :(NSString *)sinaWeiboShareText :(UIImage *)sinaWeiboShareImage;
/**
 *  短信分享
 */
-(void)showSMSPicker:(NSString *)sinaWeiboShareUrl :(NSString *)sinaWeiboShareTitle :(NSString *)sinaWeiboShareText :(UIImage *)sinaWeiboShareImage;
/**
 *  共用的手势
 *
 *  @param shareTap 共用的手势
 */
- (void)share:(UITapGestureRecognizer *)shareTap;
/**
 *  显示label
 *
 *  @param labelText 传值
 */
- (void)shouLabel: (NSString *)labelText;
/**
 *  隐藏label
 */
- (void)hiddenLabel;
/*! 显示自定义的HUD，一秒后自动消失，一行文字的时候 */
-(void)showCustomHudSingleLine:(NSString *)text;

-(void)hideCustomHud;

/**
 *  订阅关注话题
 *
 *  @param nid          话题的nid
 *  @param isCollection 是否关注
 */
- (void)updateIsCollectionWithNid:(NSString *)nid andIsCollection:(NSInteger)isCollection;
-(void)showCustomHudSingleLine:(NSString *)text;
-(void)hideCustomHud;
- (void)shareCencle;

@end
